<html>
<head><meta charset="utf-8"><title>stdarch intrinsics · t-libs · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/index.html">t-libs</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/stdarch.20intrinsics.html">stdarch intrinsics</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="246913378"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/stdarch%20intrinsics/near/246913378" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/stdarch.20intrinsics.html#246913378">(Jul 22 2021 at 22:31)</a>:</h4>
<p><span class="user-mention" data-user-id="143274">@Amanieu</span> wanted to follow up here as I think my ping <a href="https://github.com/rust-lang/rust/issues/83167#issuecomment-881061634">https://github.com/rust-lang/rust/issues/83167#issuecomment-881061634</a> might've gotten lost:</p>
<blockquote>
<p>Is it intentional that e.g. <a href="https://doc.rust-lang.org/stable/core/arch/x86_64/fn._mm256_mask_extracti32x4_epi32.html">https://doc.rust-lang.org/stable/core/arch/x86_64/fn._mm256_mask_extracti32x4_epi32.html</a> references "imm8" as the name of the parameter, but the const generic has now changed this to IMM1? I am surprised to see us rewriting Intel's docs and names, given that the idea with x86_64 intrinsics was to try and stay "as close as possible" to the canonical names from the intel docs...</p>
</blockquote>



<a name="246913512"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/stdarch%20intrinsics/near/246913512" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Amanieu <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/stdarch.20intrinsics.html#246913512">(Jul 22 2021 at 22:33)</a>:</h4>
<p>I don't think it matters too much. Technically IMM1 is more accurate, but IMM8 is closer to the intel docs. In either case most users won't ever care about this since it's just a parameter name.</p>



<a name="246913648"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/219381-t-libs/topic/stdarch%20intrinsics/near/246913648" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/219381-t-libs/topic/stdarch.20intrinsics.html#246913648">(Jul 22 2021 at 22:35)</a>:</h4>
<p>OK! I guess our documentation at least references the right name, even if it deviates from intel's. Not a huge deal, though would've been nice to stay consistent.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>